import {RouteRecordRaw } from "vue-router";
import Login from "./../views/login/index.vue"

const routes: Array<RouteRecordRaw> = [
    {
        path: "/login",
        name:"/login",
        component: Login
    },{
        path:"/",
        redirect:"/home/index"
    },{
        path:"/home",
        name:"home",
        component:()=>import("./../views/home/index.vue"),
        children:[{
            path:"index",
            name:"home-index",
            component:()=>import("./../views/index/index.vue")
        },{
            path:"user",
            name:"home-user",
            component:()=>import("./../views/system/user/index.vue")
        },{
            path:"todos",
            name:"home-todos",
            component:()=>import("./../views/todos/index.vue")
        }]
    }
];

export default routes;